﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AddTaoTi.aspx.cs" Inherits="Admin1_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="~/css/Common.css" rel="stylesheet" type="text/css" />
    <link href="~/css/admin.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .m_t
        {
            width: 1141px;
            height: 25px;
            border-top: 2px dotted #ddd;
            line-height: 25px;
            color: #369aff;
            font-size: 13px;
            font-weight: bold;
        }
        .m_t_h
        {
            width: 505px;
            height: 25px;
            line-height: 25px;
            float: left;
        }
        #notice
        {
            width: 1141px;
            height: 25px;
            text-align: center;
            color: #1e7ace;
            font-weight: bold;
            line-height: 25px;
        }
        .view
        {
            width: 1141px;
            height: auto;
        }
        .view_1
        {
            width: 1141px;
            height: auto;
        }
        .baocun
        {
            width: 1141px;
            height: 25px;
            text-align: center;
            border-top: 2px solid #ddd;
            padding-top: 5px;
        }
        .style1
        {
            height: 15px;
        }
    </style>
</head>
<body style='overflow: SCROLL; overflow-x: HIDDEN'>
    <form id="form1" runat="server">
    <div class="m_box">
        <div class="m_head">
            试卷制定
            <asp:Label ID="Label23" runat="server" Text="（总分"></asp:Label>
            <asp:Label ID="Label21" runat="server" Font-Bold="True" ForeColor="#FF3300" Text="Label"></asp:Label>
            <asp:Label ID="Label22" runat="server" Text="分）"></asp:Label>
            &nbsp;
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ksConnectionString %>"
                SelectCommand="SELECT [c_id], [c_name] FROM [Course]"></asp:SqlDataSource>
        </div>
        <br />
        <div class="m_t">
            <div class="m_t_h">
                考试科目：<asp:DropDownList ID="ddlCourse" runat="server" Width="130px" DataSourceID="SqlDataSource1"
                    DataTextField="c_name" DataValueField="c_id">
                </asp:DropDownList>
            </div>
            <div class="m_t_h">
                试卷名称：<asp:TextBox ID="txtPaperName" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="*必填"
                    ControlToValidate="txtPaperName"></asp:RequiredFieldValidator>
            </div>
        </div>
        <div class="m_t">
            <div class="m_t_h">
                考试时间：<asp:DropDownList ID="DropDownList1" runat="server" Height="19px" Width="70px">
                    <asp:ListItem Value="30">30分钟</asp:ListItem>
                    <asp:ListItem Value="60">60分钟</asp:ListItem>
                    <asp:ListItem Value="90">90分钟</asp:ListItem>
                    <asp:ListItem Value="120">120分钟</asp:ListItem>
                </asp:DropDownList>
            </div>
            <div class="m_t_h">
                试卷状态：<asp:DropDownList ID="DropDownList2" runat="server" Height="19px">
                    <asp:ListItem Value="1">可用</asp:ListItem>
                    <asp:ListItem Value="0">不可用</asp:ListItem>
                </asp:DropDownList>
            </div>
        </div>
        <div class="m_t">
            单选题</div>
        <div class="m_t">
            <div class="m_t_h">
                题目数目：<asp:DropDownList ID="SingleNum" runat="server" Width="50px" AutoPostBack="True">
                    <asp:ListItem>1</asp:ListItem>
                    <asp:ListItem>2</asp:ListItem>
                    <asp:ListItem>3</asp:ListItem>
                    <asp:ListItem>4</asp:ListItem>
                    <asp:ListItem>5</asp:ListItem>
                    <asp:ListItem>6</asp:ListItem>
                    <asp:ListItem>7</asp:ListItem>
                    <asp:ListItem>8</asp:ListItem>
                    <asp:ListItem>9</asp:ListItem>
                    <asp:ListItem>10</asp:ListItem>
                </asp:DropDownList>
            </div>
            <div class="m_t_h">
                每题分数：<asp:DropDownList ID="SingleFen" runat="server" Width="50px" AutoPostBack="True">
                    <asp:ListItem Value="1">1分</asp:ListItem>
                    <asp:ListItem Value="2">2分</asp:ListItem>
                    <asp:ListItem Value="3">3分</asp:ListItem>
                    <asp:ListItem Value="4">4分</asp:ListItem>
                    <asp:ListItem Value="5">5分</asp:ListItem>
                    <asp:ListItem Value="6">6分</asp:ListItem>
                    <asp:ListItem Value="7">7分</asp:ListItem>
                    <asp:ListItem Value="8">8分</asp:ListItem>
                    <asp:ListItem Value="9">9分</asp:ListItem>
                    <asp:ListItem Value="10">10分</asp:ListItem>
                </asp:DropDownList>
            </div>
        </div>
        <div class="m_t">
            多选题</div>
        <div class="m_t">
            <div class="m_t_h">
                题目数目：<asp:DropDownList ID="MultiNum" runat="server" Width="50px" AutoPostBack="True">
                    <asp:ListItem>1</asp:ListItem>
                    <asp:ListItem>2</asp:ListItem>
                    <asp:ListItem>3</asp:ListItem>
                    <asp:ListItem>4</asp:ListItem>
                    <asp:ListItem>5</asp:ListItem>
                    <asp:ListItem>6</asp:ListItem>
                    <asp:ListItem>7</asp:ListItem>
                    <asp:ListItem>8</asp:ListItem>
                    <asp:ListItem>9</asp:ListItem>
                    <asp:ListItem>10</asp:ListItem>
                </asp:DropDownList>
            </div>
            <div class="m_t_h">
                每题分数：<asp:DropDownList ID="MultiFen" runat="server" Width="50px" AutoPostBack="True">
                    <asp:ListItem Value="1">1分</asp:ListItem>
                    <asp:ListItem Value="2">2分</asp:ListItem>
                    <asp:ListItem Value="3">3分</asp:ListItem>
                    <asp:ListItem Value="4">4分</asp:ListItem>
                    <asp:ListItem Value="5">5分</asp:ListItem>
                    <asp:ListItem Value="6">6分</asp:ListItem>
                    <asp:ListItem Value="7">7分</asp:ListItem>
                    <asp:ListItem Value="8">8分</asp:ListItem>
                    <asp:ListItem Value="9">9分</asp:ListItem>
                    <asp:ListItem Value="10">10分</asp:ListItem>
                </asp:DropDownList>
            </div>
        </div>
        <div class="m_t">
            判断题</div>
        <div class="m_t">
            <div class="m_t_h">
                题目数目：<asp:DropDownList ID="JudgeNum" runat="server" Width="50px" AutoPostBack="True">
                    <asp:ListItem>1</asp:ListItem>
                    <asp:ListItem>2</asp:ListItem>
                    <asp:ListItem>3</asp:ListItem>
                    <asp:ListItem>4</asp:ListItem>
                    <asp:ListItem>5</asp:ListItem>
                    <asp:ListItem>6</asp:ListItem>
                    <asp:ListItem>7</asp:ListItem>
                    <asp:ListItem>8</asp:ListItem>
                    <asp:ListItem>9</asp:ListItem>
                    <asp:ListItem>10</asp:ListItem>
                </asp:DropDownList>
            </div>
            <div class="m_t_h">
                每题分数：<asp:DropDownList ID="JudgeFen" runat="server" Width="50px" AutoPostBack="True">
                    <asp:ListItem Value="1">1分</asp:ListItem>
                    <asp:ListItem Value="2">2分</asp:ListItem>
                    <asp:ListItem Value="3">3分</asp:ListItem>
                    <asp:ListItem Value="4">4分</asp:ListItem>
                    <asp:ListItem Value="5">5分</asp:ListItem>
                    <asp:ListItem Value="6">6分</asp:ListItem>
                    <asp:ListItem Value="7">7分</asp:ListItem>
                    <asp:ListItem Value="8">8分</asp:ListItem>
                    <asp:ListItem Value="9">9分</asp:ListItem>
                    <asp:ListItem Value="10">10分</asp:ListItem>
                </asp:DropDownList>
            </div>
        </div> <div class="m_t">
            简答题</div>
        <div class="m_t">
            <div class="m_t_h">
                题目数目：<asp:DropDownList ID="JianDaNum" runat="server" Width="50px" AutoPostBack="True">
                    <asp:ListItem>1</asp:ListItem>
                    <asp:ListItem>2</asp:ListItem>
                    <asp:ListItem>3</asp:ListItem>
                    <asp:ListItem>4</asp:ListItem>
                    <asp:ListItem>5</asp:ListItem>
                    <asp:ListItem>6</asp:ListItem>
                    <asp:ListItem>7</asp:ListItem>
                    <asp:ListItem>8</asp:ListItem>
                    <asp:ListItem>9</asp:ListItem>
                    <asp:ListItem>10</asp:ListItem>
                    <asp:ListItem>11</asp:ListItem>
                </asp:DropDownList>
            </div>
            <div class="m_t_h">
                每题分数：<asp:DropDownList ID="JianDaFen" runat="server" Width="50px" AutoPostBack="True">
                    <asp:ListItem Value="5">5分</asp:ListItem>
                    <asp:ListItem Value="6">6分</asp:ListItem>
                    <asp:ListItem Value="7">7分</asp:ListItem>
                    <asp:ListItem Value="8">8分</asp:ListItem>
                    <asp:ListItem Value="9">9分</asp:ListItem>
                    <asp:ListItem Value="10">10分</asp:ListItem>
                    <asp:ListItem Value="11">11分</asp:ListItem>
                    <asp:ListItem Value="12">12分</asp:ListItem>
                    <asp:ListItem Value="13">13分</asp:ListItem>
                    <asp:ListItem Value="14">14分</asp:ListItem>
                    <asp:ListItem Value="15">15分</asp:ListItem>
                </asp:DropDownList>
            </div>
        </div>
         </div> <div class="m_t">
            论述题</div>
        <div class="m_t">
            <div class="m_t_h">
                题目数目：<asp:DropDownList ID="LunShuNum" runat="server" Width="50px" AutoPostBack="True">
                    <asp:ListItem>1</asp:ListItem>
                    <asp:ListItem>2</asp:ListItem>
                    <asp:ListItem>3</asp:ListItem>
                    <asp:ListItem>4</asp:ListItem>
                    <asp:ListItem>5</asp:ListItem>
                    <asp:ListItem>6</asp:ListItem>
                    <asp:ListItem>7</asp:ListItem>
                    <asp:ListItem>8</asp:ListItem>
                    <asp:ListItem>9</asp:ListItem>
                    <asp:ListItem>10</asp:ListItem>
                </asp:DropDownList>
            </div>
            <div class="m_t_h">
                每题分数：<asp:DropDownList ID="LunShuFen" runat="server" Width="50px" AutoPostBack="True">
                    <asp:ListItem Value="15">15分</asp:ListItem>
                    <asp:ListItem Value="16">16分</asp:ListItem>
                    <asp:ListItem Value="17">17分</asp:ListItem>
                    <asp:ListItem Value="18">18分</asp:ListItem>
                    <asp:ListItem Value="19">19分</asp:ListItem>
                    <asp:ListItem Value="20">20分</asp:ListItem>
                    <asp:ListItem Value="21">21分</asp:ListItem>
                    <asp:ListItem Value="22">22分</asp:ListItem>
                    <asp:ListItem Value="23">23分</asp:ListItem>
                    <asp:ListItem Value="24">24分</asp:ListItem>
                    <asp:ListItem Value="25">25分</asp:ListItem>
                    <asp:ListItem Value="26">26分</asp:ListItem>
                    <asp:ListItem Value="27">27分</asp:ListItem>
                    <asp:ListItem>28分</asp:ListItem>
                    <asp:ListItem>29分</asp:ListItem>
                    <asp:ListItem>30分</asp:ListItem>
                </asp:DropDownList>
            </div>
        </div>
        <div class="baocun">
            <asp:ImageButton ID="ImageButton1" runat="server" OnClick="ImageButton1_Click" ImageUrl="~/image/Submit.GIF" />
        </div>
        <div id="notice">
            <asp:Label ID="Label25" runat="server" Text="注意：添加试卷总分不能超过100分" Font-Bold="True"
                Font-Size="Smaller" ForeColor="#1E7ACE"></asp:Label>
        </div>
        <div class="view">
            <asp:GridView ID="GridView1" runat="server" Width="100%" AutoGenerateColumns="False"
                HorizontalAlign="Center" EnableModelValidation="True">
                <Columns>
                    <asp:TemplateField HeaderText="一、选择题">
                        <ItemTemplate>
                            <table id="Table2" cellspacing="1" cellpadding="1" width="100%" align="center" border="0">
                                <tr>
                                    <td colspan="3">
                                        <asp:Label ID="Label1" runat="server" Text='<%# Container.DataItemIndex+1 %>'>
                                        </asp:Label>
                                        <asp:Label ID="Label2" runat="server" Text='<%# Eval("Title","、{0}") %>'>
                                        </asp:Label>
                                        <asp:Label ID="Label3" runat="server" Text='<%# Eval("ID") %>' Visible="False">
                                        </asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td width="35%">
                                        <asp:RadioButton ID="RadioButton1" runat="server" Text='<%# Eval("AnswerA") %>' GroupName="Sl">
                                        </asp:RadioButton>
                                    </td>
                                    <td width="35%">
                                        <asp:RadioButton ID="RadioButton2" runat="server" Text='<%# Eval("AnswerB") %>' GroupName="Sl">
                                        </asp:RadioButton>
                                    </td>
                                    <td>
                                    </td>
                                </tr>
                                <tr>
                                    <td width="35%">
                                        <asp:RadioButton ID="RadioButton3" runat="server" Text='<%# Eval("AnswerC") %>' GroupName="Sl">
                                        </asp:RadioButton>
                                    </td>
                                    <td width="35%">
                                        <asp:RadioButton ID="RadioButton4" runat="server" Text='<%# Eval("AnswerD") %>' GroupName="Sl">
                                        </asp:RadioButton>
                                    </td>
                                    <td>
                                    </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                        <HeaderStyle Height="20px" />
                    </asp:TemplateField>
                </Columns>
                <HeaderStyle Font-Size="12pt" HorizontalAlign="Left" />
            </asp:GridView>
        </div>
        <div class="clear">
        </div>
        <div class="view">
            <asp:GridView ID="GridView2" runat="server" Width="100%" AutoGenerateColumns="False"
                HorizontalAlign="Center" EnableModelValidation="True">
                <Columns>
                    <asp:TemplateField HeaderText="二、多选题">
                        <ItemTemplate>
                            <table id="Table3" cellspacing="1" cellpadding="1" width="100%" align="center" border="0">
                                <tr>
                                    <td colspan="3">
                                        <asp:Label ID="Label9" runat="server" Text='<%# Container.DataItemIndex+1 %>'>
                                        </asp:Label>
                                        <asp:Label ID="Label10" runat="server" Text='<%# Eval("Title","、{0}") %>'>
                                        </asp:Label>
                                        <asp:Label ID="Label6" runat="server" Text='<%# Eval("ID") %>' Visible="False">
                                        </asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="height: 22px" width="35%">
                                        <asp:CheckBox ID="CheckBox1" runat="server" Text='<%# Eval("AnswerA") %>'></asp:CheckBox>
                                    </td>
                                    <td style="height: 22px" width="35%">
                                        <asp:CheckBox ID="CheckBox2" runat="server" Text='<%# Eval("AnswerB") %>'></asp:CheckBox>
                                    </td>
                                    <td style="height: 22px">
                                    </td>
                                </tr>
                                <tr>
                                    <td width="35%">
                                        <asp:CheckBox ID="CheckBox3" runat="server" Text='<%# Eval("AnswerC") %>'></asp:CheckBox>
                                    </td>
                                    <td width="350%">
                                        <asp:CheckBox ID="CheckBox4" runat="server" Text='<%# Eval("AnswerD") %>'></asp:CheckBox>
                                    </td>
                                    <td>
                                    </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <HeaderStyle Font-Size="12pt" HorizontalAlign="Left" />
            </asp:GridView>
        </div>
        <div class="clear">
        </div>
        <div class="view_1">
            <asp:GridView ID="GridView3" runat="server" Width="100%" AutoGenerateColumns="False"
                HorizontalAlign="Center" EnableModelValidation="True">
                <Columns>
                    <asp:TemplateField HeaderText="三、判断题">
                        <ItemTemplate>
                            <table id="Table4" cellspacing="1" cellpadding="1" width="100%" align="center" border="0">
                                <tr>
                                    <td width="85%">
                                        <asp:Label ID="Label19" runat="server" Text='<%# Container.DataItemIndex+1 %>'>
                                        </asp:Label>
                                        <asp:Label ID="Label20" runat="server" Text='<%# Eval("Title","、{0}") %>'>
                                        </asp:Label>
                                        <asp:Label ID="Label7" runat="server" Text='<%# Eval("ID") %>' Visible="False">
                                        </asp:Label>
                                    </td>
                                    <td width="15%">
                                        <asp:RadioButtonList ID="RadioButtonList1" runat="server" name="RadioButtonList1"
                                            RepeatDirection="Horizontal">
                                            <asp:ListItem Value="true">正确</asp:ListItem>
                                            <asp:ListItem Value="false">错误</asp:ListItem>
                                        </asp:RadioButtonList>
                                    </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <HeaderStyle Font-Size="12pt" HorizontalAlign="Left" />
            </asp:GridView>
        </div>
        <div class="clear">
        </div>
        <div class="view_1">
            <asp:GridView ID="GridView4" runat="server" Width="100%" AutoGenerateColumns="False"
                HorizontalAlign="Center" EnableModelValidation="True">
                <Columns>
                    <asp:TemplateField HeaderText="四、简答题">
                        <ItemTemplate>
                            <table id="Table4" cellspacing="1" cellpadding="1" width="100%" align="center" border="0">
                                <tr>
                                    <td width="85%" class="style1">
                                        <asp:Label ID="Label26" runat="server" Text='<%# Container.DataItemIndex+1 %>'>
                                        </asp:Label>
                                        <asp:Label ID="Label27" runat="server" Text='<%# Eval("Title","、{0}") %>'>
                                        </asp:Label>
                                        <asp:Label ID="Label28" runat="server" Text='<%# Eval("ID") %>' Visible="False">
                                        </asp:Label>                                       
                                    </td>
                                    <td width="15%" class="style1">
                                        </td>
                                </tr>
                                <tr>
                                <td width="100%" class="style1">
                                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Eval("Answer","、{0}") %>' 
                                            Enabled="false" Height="50px" TextMode="MultiLine" Width="900px"></asp:TextBox>
                                    </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <HeaderStyle Font-Size="12pt" HorizontalAlign="Left" />
            </asp:GridView>
        </div>
         <div class="clear">
        </div>
        <div class="view_1">
            <asp:GridView ID="GridView5" runat="server" Width="100%" AutoGenerateColumns="False"
                HorizontalAlign="Center" EnableModelValidation="True">
                <Columns>
                    <asp:TemplateField HeaderText="五、论述题">
                        <ItemTemplate>
                            <table id="Table4" cellspacing="1" cellpadding="1" width="100%" align="center" border="0">
                                <tr>
                                    <td width="85%" class="style1">
                                        <asp:Label ID="Label29" runat="server" Text='<%# Container.DataItemIndex+1 %>'>
                                        </asp:Label>
                                        <asp:Label ID="Label30" runat="server" Text='<%# Eval("Title","、{0}") %>'>
                                        </asp:Label>
                                        <asp:Label ID="Label31" runat="server" Text='<%# Eval("ID") %>' Visible="False">
                                        </asp:Label>                                       
                                    </td>
                                    <td width="15%" class="style1">
                                        </td>
                                </tr>
                                <tr>
                                <td width="100%" class="style1">
                                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Eval("Answer","、{0}") %>' 
                                            Enabled="False" Height="50px" TextMode="MultiLine" Width="900px"></asp:TextBox>
                                    </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <HeaderStyle Font-Size="12pt" HorizontalAlign="Left" />
            </asp:GridView>
        </div>
        </div>
         <div class="clear">
        </div>
        <div class="baocun">
            <asp:ImageButton ID="ImageButton2" runat="server" OnClick="ImageButton2_Click" ImageUrl="~/image/Submit.GIF" />
        </div>
    </div>
    </form>
</body>
</html>
